package com.xc.pattern.state;

/**
 * @author xingchen
 * @description
 * @create 2022-09-11 22:34
 */
public class OrderContext {

    private State state;

    public OrderContext() {
    }

    public void setState(State state) {
        this.state = state;
        System.out.println("订单状态变更！！！");
        this.state.handle();
    }
}
